package com.dao;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.pojo.Poor;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface PoorDao  extends BaseMapper<Poor> {
       @Select("select poor_kind from test2.tb_poor where id=#{id}")
       public String selectPoorKind(Integer id);


       @Select("select id from test2.tb_poor where poor_kind=#{poorKind}")
       public Integer selectPoorId(String poorKind);
}
